package com.lingrit.provider.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author qlkj
 */
@Component
@ConfigurationProperties(prefix = SysProperties.PREFIX)
public class SysProperties {
    public static final String PREFIX = "sys";

    private Boolean registerSwitch;

    private String header = "fpToken";

    private String secret = "defaultSecret";

    private Long expiration = 604800L;
    private String[] excludedUris;

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public Long getExpiration() {
        return expiration;
    }

    public void setExpiration(Long expiration) {
        this.expiration = expiration;
    }

    public Boolean getRegisterSwitch() {
        return registerSwitch;
    }

    public void setRegisterSwitch(Boolean registerSwitch) {
        this.registerSwitch = registerSwitch;
    }

    public String[] getExcludedUris() {
        return excludedUris;
    }

    public void setExcludedUris(String[] excludedUris) {
        this.excludedUris = excludedUris;
    }
}
